/*******************************************************************************
 * Copyright (c) Jerges A. Bello G. 2014. Reservado todos los derechos.
 ******************************************************************************/
package com.jabex.common.util;

/**
 * Created by Jerges Bello on 17/05/2014. *
 */
public class Constants {

	public static final String OPERATION_OK = "JABEX_OPE_OK";
	public static final String OPERATION_NOK = "JABEX_OPE_NOK";
	public static final String CODE_ERROR_OPERATIONAL = "EOPE_01";
	public static final String CODE_ERROR_FUNCTIONAL = "EFUN_01";
	public static final String CODE_WARNING_OPERATIONAL = "WOPE_01";

	/**
	 * CODES APPS*
	 */
	public static final String NAME_APP_MANAGER = "PIMA";
	public static final String CODE_APP_MANAGER = "JABMA";

	public static final String NAME_APP_CORE = "JABEX-CORE";
	public static final String CODE_APP_CORE = "JABCO";

	public static final String NAME_APP_PERSISTENCE = "JABEX-PERSISTENCE";
	public static final String CODE_APP_PERSISTENCE = "JABPER";

	/**
	 * Error Page
	 */
	public static final int BAD_REQUEST = 400;
	public static final int PAGE_NOT_FOUND = 404;
	public static final int PAGE_FORBIDDEN = 403;
	public static final int SERVICE_UNAVAILABLE = 503;


	/**
	 * ORIGIN
	 */
	public enum TYPE_ORIGIN {
		DESKTOP, INTEGRATION, API
	}

	/**
	 * CHANNELS*
	 */
	public enum TYPE_CHANNELS {
		WEB, WS, REST
	}

	/**
	 * TRANSACTIONS*
	 */
	public enum TYPE_TRANSACTION {
		RESPONSES, REQUEST, INSERT, UPDATE, DELETE, GET
	}

}
